
<%@ page import="negocio.Evento" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="home" />
        <g:set var="entityName" value="${message(code: 'evento.label', default: 'Evento')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
      <div id="escopo">
        <div class="nav">
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.id.label" default="Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: eventoInstance, field: "id")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.bairro.label" default="Bairro" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: eventoInstance, field: "bairro")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.cep.label" default="Cep" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: eventoInstance, field: "cep")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.cidade.label" default="Cidade" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: eventoInstance, field: "cidade")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.complemento.label" default="Complemento" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: eventoInstance, field: "complemento")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.descricao.label" default="Descricao" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: eventoInstance, field: "descricao")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.dono.label" default="Dono" /></td>
                            
                            <td valign="top" class="value"><g:link controller="usuario" action="show" id="${eventoInstance?.dono?.id}">${eventoInstance?.dono?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.inicio.label" default="Inicio" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${eventoInstance?.inicio}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.instituicao.label" default="Instituicao" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: eventoInstance, field: "instituicao")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.logo.label" default="Logo" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.logradouro.label" default="Logradouro" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: eventoInstance, field: "logradouro")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.nome.label" default="Nome" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: eventoInstance, field: "nome")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.numero.label" default="Numero" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: eventoInstance, field: "numero")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="evento.uf.label" default="Uf" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: eventoInstance, field: "uf")}</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${eventoInstance?.id}" />
                    <!--<span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span> -->
                    <span class="button">
                      <span class="button"> <g:link controller="inscricao" action="participarEvento" id="${eventoInstance?.id}">${message(code: 'default.button.participar.label', default: 'Participar')}</g:link></span>
                      <span class="button"><g:link controller="atividade" action="listeAtividadesEvento" id="${eventoInstance?.id}">${message(code: 'default.button.veratividade.label', default: 'Ver atividades')}</g:link></span>
                       
                    </span>
                </g:form>
            </div>
        </div>
        </div>
    </body>
</html>
